/**
 * @description 小程序配置子路由
 */
export const miniProgramChildren = [
  {
    path: 'setTime',
    name: 'setTime',
    meta: { title: '考试倒计时' },
    component: () => import('@/views/MiniProgramConfiguration/SetTime/SetTime')
  },
  {
    path: 'slideShow',
    name: 'slideShow',
    meta: { title: '轮播图' },
    component: () => import('@/views/MiniProgramConfiguration/SlideShow/SlideShow')
  },
  {
    path: 'homeItem',
    name: 'homeItem',
    meta: { title: '首页功能条' },
    component: () => import('@/views/MiniProgramConfiguration/HomeItem/HomeItem')
  },
  {
    path: 'articleInfo',
    name: 'articleInfo',
    meta: { title: '首页文章' },
    component: () => import('@/views/MiniProgramConfiguration/ArticleInfo/ArticleInfo')
  },
  {
    path: 'examinationProcess',
    name: 'examinationProcess',
    meta: { title: '报考流程' },
    component: () =>
      import('@/views/MiniProgramConfiguration/ExaminationProcess/ExaminationProcess')
  }
  // {
  //   path: 'commissionScale',
  //   name: 'commissionScale',
  //   meta: { title: '佣金比例' },
  //   component: () => import('@/views/MiniProgramConfiguration/CommissionScale/CommissionScale')
  // },
  // {
  //   path: 'redeemCode',
  //   name: 'redeemCode',
  //   meta: { title: '兑换码' },
  //   component: () => import('@/views/MiniProgramConfiguration/RedeemCode/RedeemCode')
  // },
  // {
  //   path: 'Customer',
  //   name: 'Customer',
  //   meta: { title: '好友列表' },
  //   component: () => import('@/views/MiniProgramConfiguration/Customer/Customer')
  // },
  // {
  //   path: 'WxScanCode',
  //   name: 'WxScanCode',
  //   meta: { title: '二维码管理' },
  //   component: () => import('@/views/MiniProgramConfiguration/WxScanCode/WxScanCode')
  // },
  // {
  //   path: 'CircleManage',
  //   name: 'CircleManage',
  //   meta: { title: '圈子管理' },
  //   component: () => import('@/views/MiniProgramConfiguration/CircleManage/CircleManage')
  // }
]

/**
 * @description 小程序配置路由
 */
const miniProgramConfig = {
  path: 'miniProgramConfiguration',
  name: 'miniProgramConfiguration',
  meta: { title: '小程序配置', icon: 'mini-program-config', hiddenChildren: true },
  redirect: '/miniProgramConfiguration/setTime',
  component: () => import('@/views/MiniProgramConfiguration/MiniProgramConfiguration'),
  children: miniProgramChildren
}

export default miniProgramConfig
